import request from '@/utils/request'

const docsSettingApi = {
    /**
     * 配置详情
     */
    detail(): Promise<any> {
        return request.get({
            url: '/apply/docs/setting/detail'
        })
    },

    /**
     * 配置保存
     */
    save(params: {
        status: number;
        ranking_status: number;
        auto_abstract?: number;
        charge_method?: number;
        charge_amount?: number;
        vector_models: string;
        ranking_models?: string;
        search_tokens: number;
        search_similar: number;
        ranking_score: number;
    }): Promise<any> {
        return request.post({
            url: '/apply/docs/setting/save',
            params
        })
    }
}

export default docsSettingApi
